package com.yq.cp.entity.basics;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yq.cp.entity.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 设备管理-扩展  存储历史记录
 * </p>
 *
 * @author shenyuqing
 * @since 2024-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_equipment_management_extend")
public class EquipmentManagementExtend extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 站点id
     */
    private Long siteId;
    /**
     * 站点名
     */
    @TableField(exist = false)
    private String siteName;

    /**
     * 所在地区
     */
    private String area;

    /**
     * 设备大类
     */
    private Long equipmentCategoryId;
    /**
     * 设备大类名
     */
    @TableField(exist = false)
    private String equipmentCategoryName;

    /**
     * 设备类型
     */
    private Long equipmentType;
    /**
     * 设备类型名
     */
    @TableField(exist = false)
    private String equipmentTypeName;

    /**
     * 设备名称
     */
    private String name;

    /**
     * SN码
     */
    private String sn;

    /**
     * 计量点位
     */
    private String measurementPointLocation;

    /**
     * 设备编码
     */
    private String equipmentCode;

    /**
     * 最高阈值
     */
    private BigDecimal maximumThreshold;

    /**
     * 最低阈值
     */
    private BigDecimal minimumThreshold;

    /**
     * 设备序列号
     */
    private String equipmentSerialNumber;

    /**
     * 通道加密密码
     */
    private String channelEncryptionPassword;

    /**
     * 通道号
     */
    private Integer channelNumber;

    private String accessToken;

    /**
     * 图片
     */
    private String photo;

    /**
     * 0-待审核   1-通过   2-拒绝
     */
    private Integer examine;

    /**
     * 0-待审核   1-通过   2-拒绝
     */
    private String deleteExamine;

    /**
     * 拒绝理由
     */
    private String refuseReason;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date examineDate;

    /**
     * 审核人
     */
    private String examinePerson;

    private Integer yxzt;

    private BigDecimal yxxl;

    private BigDecimal yxgl;

    private BigDecimal rateOfWork;

    private BigDecimal rateOfWorkDc;

    private BigDecimal temperature;

    private BigDecimal humidity;

    private BigDecimal efficiency;

    private BigDecimal operationState;

    /**
     * 审核人电子签名
     */
    private String examinePersonSignature;

    /**
     * 关联设备的id
     */
    private Long glsbId;
    /**
     * 关联信息  0-新增   1-编辑  2-更换  3-删除审核
     */
    private Integer gllx;

    private Integer isjf;
    /**
     * 两个数据相互绑定
     */
    private Long randomId;
    /**
     * 修改后的类型
     */
    @TableField(exist = false)
    private EquipmentManagementExtend equipmentManagementExtend;


    @TableField(exist = false)
    private BigDecimal fdl;
    /**
     * 0-关闭  1-开启
     */
    private Integer isOpen;
}
